import unittest
from htmltestreport import HTMLTestReport

import config.path_cfg as cfg

from log.log_config import init_logging

if __name__ == '__main__':
    init_logging()

    suite = unittest.defaultTestLoader.discover(cfg.BASE_DIR + '/scripts')
    report = HTMLTestReport(cfg.BASE_DIR + '/report/iHRM_report.html')
    report.run(suite)
